package com.example.dllo.keepdemo.person.bean;

import java.util.List;

/**
 * Created by dllo on 16/1/21.
 */
public class PersonMessageBean {

    /**
     * ok : true
     * data : {"_id":"5611dcfefff340ac5d141f93","username":"Akkito","avatar":"http://static1.gotokeep.com/avatar/2015/11/04/23/a0df32dbfd291f8d0a3df024ac5bebd6098750bb.jpg","bio":"","last_login":"2016-01-19T12:18:06.854Z","gender":"F","combo":2,"last_exercise_at":"2016-01-19T16:00:01.000Z","totalDuration":643,"totalFinish":77,"totalCalorie":4993,"activePlans":["54afac01e06249cb13904c17","55d2c17b70ca0cae6906239d","55e5739c88d3525942226cfe","55e3022deb2ce0ccf866d291","55e3197951a7a05af865a019"],"activeWorkouts":["55e036226437cbe4f87c399d","551b92a3ed487d8f2b6175d2","5607adec7e823d5d9f5eda63","54afab18e06249cb13904c08","54afab8ee06249cb13904c0f","54afaa8935fb7f5912e3c717","55f147f0fa8bef8b158c31bf","54afa3df35fb7f5912e3c6e7","54af894d5c5f72d2058c5d85","54afbe6a16a510a82194e24f","54afad45e06249cb13904c32","54af9eea35fb7f5912e3c6bd","55d2e472cb23bbdb81bafbf6"],"workouts":[{"workout":"55e036226437cbe4f87c399d","_id":"561265267056fe7795740637","completed":24},{"workout":"54afa6b935fb7f5912e3c701","_id":"561525885b4f46d4d4a0d9aa","completed":0},{"workout":"551b92a3ed487d8f2b6175d2","_id":"561526be8fe99197cd111731","completed":1},{"workout":"5607adec7e823d5d9f5eda63","_id":"5624ade9d1802b9289413fa4","completed":2},{"workout":"54afab18e06249cb13904c08","_id":"5624ae24b5135e6dc0094bd1","completed":0},{"workout":"54afab8ee06249cb13904c0f","_id":"5624ae29ce35e0b114dfce3b","completed":0},{"workout":"54afaa8935fb7f5912e3c717","_id":"5624b7c7f512ef91c0bcc736","completed":0},{"workout":"55f147f0fa8bef8b158c31bf","_id":"5624b7ffbcde4bdc69617bfc","completed":1},{"workout":"54afa3df35fb7f5912e3c6e7","_id":"5624b811a46b9fcdc03963f7","completed":3},{"workout":"54af894d5c5f72d2058c5d85","_id":"5624b81e44cbc9b54fec8664","completed":0},{"workout":"54afbe6a16a510a82194e24f","_id":"5624b83a9a3c9879c07114a3","completed":0},{"workout":"54afad45e06249cb13904c32","_id":"56263276b63386db7c37e006","completed":5},{"workout":"54af9eea35fb7f5912e3c6bd","_id":"5634f09daa338fd9c89e99a0","completed":9},{"workout":"55d2e472cb23bbdb81bafbf6","_id":"563d747ca2cbf617cc0b6204","completed":1}],"plans":[{"plan":"54afac01e06249cb13904c17","days":6,"_id":"5611e28c9015339e6f4f50b9","completed_at":"2015-10-14T13:53:51.630Z","joined_at":"2015-10-05T02:38:04.238Z","max_progress":6,"current_progress":6},{"plan":"55e2ba1303037f4ef8085aa7","days":4,"_id":"56151fe7e24148c0d19ee9f7","completed_at":"2015-10-30T15:06:03.382Z","joined_at":"2015-10-07T13:36:39.728Z","max_progress":4,"current_progress":0},{"plan":"55e3022deb2ce0ccf866d291","days":4,"_id":"5624ae520ec78ff714df30e6","completed_at":"2015-11-11T13:17:11.220Z","joined_at":"2015-10-19T08:48:18.599Z","max_progress":4,"current_progress":4},{"plan":"55d2c17b70ca0cae6906239d","days":3,"_id":"5624b7820ec78ff714df31f7","completed_at":"2015-11-29T06:26:30.760Z","joined_at":"2015-10-19T09:27:30.532Z","max_progress":3,"current_progress":3},{"plan":"55e5739c88d3525942226cfe","days":4,"_id":"562e4ff821971b5e6667c5c5","completed_at":"2015-12-10T12:07:47.840Z","joined_at":"2015-10-26T16:08:24.859Z","max_progress":4,"current_progress":0},{"plan":"55e3197951a7a05af865a019","days":3,"_id":"56681d4839204e2f05badd0b","completed_at":"2015-12-23T15:48:04.490Z","joined_at":"2015-12-09T12:23:36.955Z","max_progress":3,"current_progress":3}],"citycode":"440300","birthday":"1991-09-01T00:00:00.000Z","state":"normal","liked":1552,"totalHotEntry":12,"hasFollowed":false,"hasBlack":false,"hasMutualFollow":false,"followers":426,"followings":17,"statistics":{"_id":"5611de8aaa805d9568900e8d","currentCombo":2,"lastTraining":"2016-01-19T16:00:01.000Z","maxCombo":9,"totalCalorie":4993,"totalDuration":643,"totalTraining":77,"totalTrainingDay":53,"totalEntries":71,"achievements":17,"liked":1552,"totalHotEntry":12}}
     * errorCode : 0
     * now : 2016-01-21T07:36:32.674Z
     * version : 1.0.0
     */

    private boolean ok;
    /**
     * _id : 5611dcfefff340ac5d141f93
     * username : Akkito
     * avatar : http://static1.gotokeep.com/avatar/2015/11/04/23/a0df32dbfd291f8d0a3df024ac5bebd6098750bb.jpg
     * bio :
     * last_login : 2016-01-19T12:18:06.854Z
     * gender : F
     * combo : 2
     * last_exercise_at : 2016-01-19T16:00:01.000Z
     * totalDuration : 643
     * totalFinish : 77
     * totalCalorie : 4993
     * activePlans : ["54afac01e06249cb13904c17","55d2c17b70ca0cae6906239d","55e5739c88d3525942226cfe","55e3022deb2ce0ccf866d291","55e3197951a7a05af865a019"]
     * activeWorkouts : ["55e036226437cbe4f87c399d","551b92a3ed487d8f2b6175d2","5607adec7e823d5d9f5eda63","54afab18e06249cb13904c08","54afab8ee06249cb13904c0f","54afaa8935fb7f5912e3c717","55f147f0fa8bef8b158c31bf","54afa3df35fb7f5912e3c6e7","54af894d5c5f72d2058c5d85","54afbe6a16a510a82194e24f","54afad45e06249cb13904c32","54af9eea35fb7f5912e3c6bd","55d2e472cb23bbdb81bafbf6"]
     * workouts : [{"workout":"55e036226437cbe4f87c399d","_id":"561265267056fe7795740637","completed":24},{"workout":"54afa6b935fb7f5912e3c701","_id":"561525885b4f46d4d4a0d9aa","completed":0},{"workout":"551b92a3ed487d8f2b6175d2","_id":"561526be8fe99197cd111731","completed":1},{"workout":"5607adec7e823d5d9f5eda63","_id":"5624ade9d1802b9289413fa4","completed":2},{"workout":"54afab18e06249cb13904c08","_id":"5624ae24b5135e6dc0094bd1","completed":0},{"workout":"54afab8ee06249cb13904c0f","_id":"5624ae29ce35e0b114dfce3b","completed":0},{"workout":"54afaa8935fb7f5912e3c717","_id":"5624b7c7f512ef91c0bcc736","completed":0},{"workout":"55f147f0fa8bef8b158c31bf","_id":"5624b7ffbcde4bdc69617bfc","completed":1},{"workout":"54afa3df35fb7f5912e3c6e7","_id":"5624b811a46b9fcdc03963f7","completed":3},{"workout":"54af894d5c5f72d2058c5d85","_id":"5624b81e44cbc9b54fec8664","completed":0},{"workout":"54afbe6a16a510a82194e24f","_id":"5624b83a9a3c9879c07114a3","completed":0},{"workout":"54afad45e06249cb13904c32","_id":"56263276b63386db7c37e006","completed":5},{"workout":"54af9eea35fb7f5912e3c6bd","_id":"5634f09daa338fd9c89e99a0","completed":9},{"workout":"55d2e472cb23bbdb81bafbf6","_id":"563d747ca2cbf617cc0b6204","completed":1}]
     * plans : [{"plan":"54afac01e06249cb13904c17","days":6,"_id":"5611e28c9015339e6f4f50b9","completed_at":"2015-10-14T13:53:51.630Z","joined_at":"2015-10-05T02:38:04.238Z","max_progress":6,"current_progress":6},{"plan":"55e2ba1303037f4ef8085aa7","days":4,"_id":"56151fe7e24148c0d19ee9f7","completed_at":"2015-10-30T15:06:03.382Z","joined_at":"2015-10-07T13:36:39.728Z","max_progress":4,"current_progress":0},{"plan":"55e3022deb2ce0ccf866d291","days":4,"_id":"5624ae520ec78ff714df30e6","completed_at":"2015-11-11T13:17:11.220Z","joined_at":"2015-10-19T08:48:18.599Z","max_progress":4,"current_progress":4},{"plan":"55d2c17b70ca0cae6906239d","days":3,"_id":"5624b7820ec78ff714df31f7","completed_at":"2015-11-29T06:26:30.760Z","joined_at":"2015-10-19T09:27:30.532Z","max_progress":3,"current_progress":3},{"plan":"55e5739c88d3525942226cfe","days":4,"_id":"562e4ff821971b5e6667c5c5","completed_at":"2015-12-10T12:07:47.840Z","joined_at":"2015-10-26T16:08:24.859Z","max_progress":4,"current_progress":0},{"plan":"55e3197951a7a05af865a019","days":3,"_id":"56681d4839204e2f05badd0b","completed_at":"2015-12-23T15:48:04.490Z","joined_at":"2015-12-09T12:23:36.955Z","max_progress":3,"current_progress":3}]
     * citycode : 440300
     * birthday : 1991-09-01T00:00:00.000Z
     * state : normal
     * liked : 1552
     * totalHotEntry : 12
     * hasFollowed : false
     * hasBlack : false
     * hasMutualFollow : false
     * followers : 426
     * followings : 17
     * statistics : {"_id":"5611de8aaa805d9568900e8d","currentCombo":2,"lastTraining":"2016-01-19T16:00:01.000Z","maxCombo":9,"totalCalorie":4993,"totalDuration":643,"totalTraining":77,"totalTrainingDay":53,"totalEntries":71,"achievements":17,"liked":1552,"totalHotEntry":12}
     */

    private DataEntity data;
    private int errorCode;
    private String now;
    private String version;

    public void setOk(boolean ok) {
        this.ok = ok;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public void setNow(String now) {
        this.now = now;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public boolean isOk() {
        return ok;
    }

    public DataEntity getData() {
        return data;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public String getNow() {
        return now;
    }

    public String getVersion() {
        return version;
    }

    public static class DataEntity {
        private String _id;
        private String username;
        private String avatar;
        private String bio;
        private String last_login;
        private String gender;
        private int combo;
        private String last_exercise_at;
        private int totalDuration;
        private int totalFinish;
        private int totalCalorie;
        private String citycode;
        private String birthday;
        private String state;
        private int liked;
        private int totalHotEntry;
        private boolean hasFollowed;
        private boolean hasBlack;
        private boolean hasMutualFollow;
        private int followers;
        private int followings;
        /**
         * _id : 5611de8aaa805d9568900e8d
         * currentCombo : 2
         * lastTraining : 2016-01-19T16:00:01.000Z
         * maxCombo : 9
         * totalCalorie : 4993
         * totalDuration : 643
         * totalTraining : 77
         * totalTrainingDay : 53
         * totalEntries : 71
         * achievements : 17
         * liked : 1552
         * totalHotEntry : 12
         */

        private StatisticsEntity statistics;
        private List<String> activePlans;
        private List<String> activeWorkouts;
        /**
         * workout : 55e036226437cbe4f87c399d
         * _id : 561265267056fe7795740637
         * completed : 24
         */

        private List<WorkoutsEntity> workouts;
        /**
         * plan : 54afac01e06249cb13904c17
         * days : 6
         * _id : 5611e28c9015339e6f4f50b9
         * completed_at : 2015-10-14T13:53:51.630Z
         * joined_at : 2015-10-05T02:38:04.238Z
         * max_progress : 6
         * current_progress : 6
         */

        private List<PlansEntity> plans;

        public void set_id(String _id) {
            this._id = _id;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public void setBio(String bio) {
            this.bio = bio;
        }

        public void setLast_login(String last_login) {
            this.last_login = last_login;
        }

        public void setGender(String gender) {
            this.gender = gender;
        }

        public void setCombo(int combo) {
            this.combo = combo;
        }

        public void setLast_exercise_at(String last_exercise_at) {
            this.last_exercise_at = last_exercise_at;
        }

        public void setTotalDuration(int totalDuration) {
            this.totalDuration = totalDuration;
        }

        public void setTotalFinish(int totalFinish) {
            this.totalFinish = totalFinish;
        }

        public void setTotalCalorie(int totalCalorie) {
            this.totalCalorie = totalCalorie;
        }

        public void setCitycode(String citycode) {
            this.citycode = citycode;
        }

        public void setBirthday(String birthday) {
            this.birthday = birthday;
        }

        public void setState(String state) {
            this.state = state;
        }

        public void setLiked(int liked) {
            this.liked = liked;
        }

        public void setTotalHotEntry(int totalHotEntry) {
            this.totalHotEntry = totalHotEntry;
        }

        public void setHasFollowed(boolean hasFollowed) {
            this.hasFollowed = hasFollowed;
        }

        public void setHasBlack(boolean hasBlack) {
            this.hasBlack = hasBlack;
        }

        public void setHasMutualFollow(boolean hasMutualFollow) {
            this.hasMutualFollow = hasMutualFollow;
        }

        public void setFollowers(int followers) {
            this.followers = followers;
        }

        public void setFollowings(int followings) {
            this.followings = followings;
        }

        public void setStatistics(StatisticsEntity statistics) {
            this.statistics = statistics;
        }

        public void setActivePlans(List<String> activePlans) {
            this.activePlans = activePlans;
        }

        public void setActiveWorkouts(List<String> activeWorkouts) {
            this.activeWorkouts = activeWorkouts;
        }

        public void setWorkouts(List<WorkoutsEntity> workouts) {
            this.workouts = workouts;
        }

        public void setPlans(List<PlansEntity> plans) {
            this.plans = plans;
        }

        public String get_id() {
            return _id;
        }

        public String getUsername() {
            return username;
        }

        public String getAvatar() {
            return avatar;
        }

        public String getBio() {
            return bio;
        }

        public String getLast_login() {
            return last_login;
        }

        public String getGender() {
            return gender;
        }

        public int getCombo() {
            return combo;
        }

        public String getLast_exercise_at() {
            return last_exercise_at;
        }

        public int getTotalDuration() {
            return totalDuration;
        }

        public int getTotalFinish() {
            return totalFinish;
        }

        public int getTotalCalorie() {
            return totalCalorie;
        }

        public String getCitycode() {
            return citycode;
        }

        public String getBirthday() {
            return birthday;
        }

        public String getState() {
            return state;
        }

        public int getLiked() {
            return liked;
        }

        public int getTotalHotEntry() {
            return totalHotEntry;
        }

        public boolean isHasFollowed() {
            return hasFollowed;
        }

        public boolean isHasBlack() {
            return hasBlack;
        }

        public boolean isHasMutualFollow() {
            return hasMutualFollow;
        }

        public int getFollowers() {
            return followers;
        }

        public int getFollowings() {
            return followings;
        }

        public StatisticsEntity getStatistics() {
            return statistics;
        }

        public List<String> getActivePlans() {
            return activePlans;
        }

        public List<String> getActiveWorkouts() {
            return activeWorkouts;
        }

        public List<WorkoutsEntity> getWorkouts() {
            return workouts;
        }

        public List<PlansEntity> getPlans() {
            return plans;
        }

        public static class StatisticsEntity {
            private String _id;
            private int currentCombo;
            private String lastTraining;
            private int maxCombo;
            private int totalCalorie;
            private int totalDuration;
            private int totalTraining;
            private int totalTrainingDay;
            private int totalEntries;
            private int achievements;
            private int liked;
            private int totalHotEntry;

            public void set_id(String _id) {
                this._id = _id;
            }

            public void setCurrentCombo(int currentCombo) {
                this.currentCombo = currentCombo;
            }

            public void setLastTraining(String lastTraining) {
                this.lastTraining = lastTraining;
            }

            public void setMaxCombo(int maxCombo) {
                this.maxCombo = maxCombo;
            }

            public void setTotalCalorie(int totalCalorie) {
                this.totalCalorie = totalCalorie;
            }

            public void setTotalDuration(int totalDuration) {
                this.totalDuration = totalDuration;
            }

            public void setTotalTraining(int totalTraining) {
                this.totalTraining = totalTraining;
            }

            public void setTotalTrainingDay(int totalTrainingDay) {
                this.totalTrainingDay = totalTrainingDay;
            }

            public void setTotalEntries(int totalEntries) {
                this.totalEntries = totalEntries;
            }

            public void setAchievements(int achievements) {
                this.achievements = achievements;
            }

            public void setLiked(int liked) {
                this.liked = liked;
            }

            public void setTotalHotEntry(int totalHotEntry) {
                this.totalHotEntry = totalHotEntry;
            }

            public String get_id() {
                return _id;
            }

            public int getCurrentCombo() {
                return currentCombo;
            }

            public String getLastTraining() {
                return lastTraining;
            }

            public int getMaxCombo() {
                return maxCombo;
            }

            public int getTotalCalorie() {
                return totalCalorie;
            }

            public int getTotalDuration() {
                return totalDuration;
            }

            public int getTotalTraining() {
                return totalTraining;
            }

            public int getTotalTrainingDay() {
                return totalTrainingDay;
            }

            public int getTotalEntries() {
                return totalEntries;
            }

            public int getAchievements() {
                return achievements;
            }

            public int getLiked() {
                return liked;
            }

            public int getTotalHotEntry() {
                return totalHotEntry;
            }
        }

        public static class WorkoutsEntity {
            private String workout;
            private String _id;
            private int completed;

            public void setWorkout(String workout) {
                this.workout = workout;
            }

            public void set_id(String _id) {
                this._id = _id;
            }

            public void setCompleted(int completed) {
                this.completed = completed;
            }

            public String getWorkout() {
                return workout;
            }

            public String get_id() {
                return _id;
            }

            public int getCompleted() {
                return completed;
            }
        }

        public static class PlansEntity {
            private String plan;
            private int days;
            private String _id;
            private String completed_at;
            private String joined_at;
            private int max_progress;
            private int current_progress;

            public void setPlan(String plan) {
                this.plan = plan;
            }

            public void setDays(int days) {
                this.days = days;
            }

            public void set_id(String _id) {
                this._id = _id;
            }

            public void setCompleted_at(String completed_at) {
                this.completed_at = completed_at;
            }

            public void setJoined_at(String joined_at) {
                this.joined_at = joined_at;
            }

            public void setMax_progress(int max_progress) {
                this.max_progress = max_progress;
            }

            public void setCurrent_progress(int current_progress) {
                this.current_progress = current_progress;
            }

            public String getPlan() {
                return plan;
            }

            public int getDays() {
                return days;
            }

            public String get_id() {
                return _id;
            }

            public String getCompleted_at() {
                return completed_at;
            }

            public String getJoined_at() {
                return joined_at;
            }

            public int getMax_progress() {
                return max_progress;
            }

            public int getCurrent_progress() {
                return current_progress;
            }
        }
    }
}
